
enum Direction{
    Up = 1,
    Down,
    Left, 
    Right
}

enum FileAccess{
    None,
    Read = 1<<1,
    Write = 1<<2,
    ReadWriet = Read|Write,
    G = "123".length
}
// 常量枚举
const enum Enum{
    A = 10,
    B = A+10
}

// 外部枚举
declare enum Enum2{
    A = 1,
}


